ListBox Class

Defines an input control that allows a user to select one or more items from a list. It is an alternative representation for a group of radio buttons.

Definition

Namespace: Independentsoft.Office.Odf.Forms
Assembly: Independentsoft.Office (in Independentsoft.Office.dll) Version: 3.0.460.1+37fe42d8e65847775742df0a70fdb403ab6fa65f
C#
public class ListBox : Control
Inheritance
Object    Control    ListBox

Constructors

ListBox Initializes a new instance of the ListBox class.

Properties

BoundColumn Specifies the column values of the list source result set that are used to fill the data field values.
ControlImplementation Contains an identifier for a control element.
DataField Specifies the name of a column in the result set defined by a (data-aware) form. A control interchanges content with its column when: -the current row of a form changes, the control is initialized with the value from its column. -the user changes the content of a control, this changed value is written back to its column.
DefaultValue Specifies the default value of an input control.
EnableMultiSelection Specifies whether a user can select multiple items from a list box.
EnableTabbingNavigation Specifies whether a control is included in the tabbing navigation order.
EventListeners
(Inherited from Control)
ID Contains an identifier for a control element.
IsDisabled Specifies whether a control can accept user input.Controls that are disabled are not included in the tabbing navigation sequence and cannot be focused.
IsDropDown Specifies whether a list in a combobox or listbox element is always visible or is only visible when the user clicks the drop-down button.
IsPrintable Specifies whether a control is printed when a user prints a document in which the control is contained
IsReadOnly Specifies whether a user can modify the value of a control.Read-only controls are included in a tabbing navigation sequence.
Name Contains name of a form or control element.
Options Contains a collection of Option objects.
Properties
(Inherited from Control)
Size Specifies the number of rows that are visible at a time in a combo box list or a list box list.
Source Specifies the source for the list entries in a list or combo box.
SourceType Specifies how to populate the entry list in a combo box or list box control.
TabIndex Contains tabbing navigation order of controls within a form.
Title Contains additional information about a control. The value of the attribute can be used as a tool tip.

Methods

Clone Creates a new object that is a deep copy of the current instance.
Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetContentElements Returns all content elements.
(Overrides ControlGetContentElements)
GetHashCode
(Inherited from Object)
GetParent
(Inherited from Control)
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
ToString Converts the value of the current ListBox object to its equivalent string representation.
(Overrides ObjectToString)

See Also